/*
 * @(#)ErrorSeverityType.java
 * Date 2013-09-22
 * Version 1.0
 * Author Jim Horner
 * Copyright (c)2012
 */


package us.hornerscorners.lamppost.registry.constant;

import us.hornerscorners.lamppost.exception.ISeverityType;


/**
 * Enum description
 *
 */
public enum ErrorSeverityType implements ISeverityType {

    Error("urn:oasis:names:tc:ebxml-regrep:ErrorSeverityType:Error"), 
    Warning("urn:oasis:names:tc:ebxml-regrep:ErrorSeverityType:Warning")
    ;

    /** Field description */
    private final String code;

    /**
     * Constructs ...
     *
     *
     * @param c
     */
    private ErrorSeverityType(String c) {
        this.code = c;
    }

    /**
     * Method description
     *
     *
     * @return
     */
    @Override
    public String getCode() {
        return code;
    }

    /**
     * Method description
     *
     *
     * @return
     */
    @Override
    public boolean isError() {
        
        return (equals(ErrorSeverityType.Error));
    }

    /**
     * Method description
     *
     *
     * @return
     */
    @Override
    public boolean isWarning() {
        
        return (equals(ErrorSeverityType.Warning));
    }
}
